<?php
namespace app\index\controller;
use \think\Session;
use app\index\model\ConnectScore;

class Myself extends \think\Controller
{
    public function index()
    {
       $info = Session::get('info','think');
       $where['stuid']=$info['stuid'];
       $score = new ConnectScore;
       $scoreAll= $score->where($where)->select();
       $scoreAll=json_decode(json_encode($scoreAll),true);
       var_dump($scoreAll);
       $this->assign('scoreAll',$scoreAll);
       $this->assign('info',$info);
       return $this->fetch('myself');
    }
}
?>